← Index
NYTProf Performance Profile   
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename(eval 74)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 20 statements in 25µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22127µs66µsCGI::::deleteCGI::delete
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package CGI; #### Method: delete
2# Deletes the named parameter entirely.
3####
4
# spent 66µs (27+39) within CGI::delete which was called 2 times, avg 33µs/call: # once (18µs+26µs) by CGI::init at line 895 of CGI.pm # once (9µs+13µs) by CGI::init at line 739 of CGI.pm
sub delete {
523µs24µs my($self,@p) = self_or_default(@_);
# spent 4µs making 2 calls to CGI::self_or_default, avg 2µs/call
624µs219µs my(@names) = rearrange([NAME],@p);
# spent 19µs making 2 calls to CGI::Util::rearrange, avg 10µs/call
72800ns my @to_delete = ref($names[0]) eq 'ARRAY' ? @$names[0] : @names;
82300ns my %to_delete;
92900ns for my $name (@to_delete)
10 {
1123µs CORE::delete $self->{param}{$name};
122200ns CORE::delete $self->{'.fieldnames'}->{$name};
1322µs $to_delete{$name}++;
14 }
1527µs216µs @{$self->{'.parameters'}}=grep { !exists($to_delete{$_}) } $self->param();
# spent 16µs making 2 calls to CGI::param, avg 8µs/call
1625µs return;
17}
18
19;